import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)



import store from 'store'

Vue.use(store)

const state = {
  name:"张三"
  // currentSelected: 0,
  // currentPath: '/Home/JingXuan'
}
const getters = {

}
const mutations = {
  CHANGESELECTED(state,payload){
    state.name = payload.name
    // state.currentSelected = payload.currentSelected;
    // state.currentPath = payload.path;
  }
}
const actions = {

}

export default new Vuex.Store({
  state,
  getters,
  mutations,
  actions
})
